package com.smarthome.web.property.work;

// @Service
// public class HaiKangVideoTask {

// private static Logger logger = Logger.getLogger(HaiKangVideoTask.class);
// @Resource
// private HkVideoService hkVideoService;
// @Resource
// private EquipmentDevCameraService equipmentDevCameraService;
//
// @Scheduled(initialDelay = 10 * 1000, fixedRate = 5 * 24 * 60 * 60 * 1000)
// public void getToken() {
// String token = hkVideoService.getAccessToken();
// logger.info("HaiKangVideoTokenTask-getToken:" + token);
// if (!StringUtils.isBlank(token)) {
// JSONObject object = JSONObject.parseObject(token);
// JedisUtils.set(BossCachedKeysUtil.getKey(BossCachedKeysUtil.MODULE_HK_VIDEO_TOKEN, "1"),
// object.getJSONObject("result").getJSONObject("data").getString("accessToken"));
// }
// }
//
// @Scheduled(initialDelay = 30 * 1000, fixedRate = 30 * 60 * 1000)
// public void synCameraInfo() {
// equipmentDevCameraService.parseCameraInfo();
// }

// }
